package cn.lysj.framework.common.repository;

import cn.lysj.framework.base.BaseRepository;
import cn.lysj.framework.common.domain.Permission;

import java.util.List;

/**
 * @author zk
 * @description 权限表数据处理层
 * @create 2018-07-25 15:32:54
 **/
public interface PermissionRepository extends BaseRepository<Permission> {
    List<Permission> findByLevelOrderBySortOrder(Integer level);

    List<Permission> findByParentIdOrderBySortOrder(String parentId);
}